package uk.co.drpj.gui;

import java.awt.Color;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;

import javax.swing.JPanel;

import uk.co.drpj.midi.piano.Piano;

public class PianoPanel extends JPanel {
	 public PianoPanel(Piano piano) {
	        JPanel panel = new JPanel();
	        panel.setBackground(Color.BLACK);

	        panel.setLayout(new GridBagLayout());


	        GridBagConstraints c = new GridBagConstraints();


	        c.gridx = 0;
	        c.gridy = 0;
	        c.gridwidth = GridBagConstraints.REMAINDER;
	        c.gridheight = 1;
	        c.weighty = 1.0;
	        c.weightx = 1.0;
	        c.fill=GridBagConstraints.HORIZONTAL;

	        Util.borderize(piano.getPanel(), "Virtual Piano");
	        panel.add(piano.getPanel(), c);

	        c.gridx = 0;
	        c.gridy = 1;
	        c.gridwidth = 1;
	        c.weighty = 0.0;
	        c.weighty = 0.0;
	        c.fill = GridBagConstraints.BOTH;

	     

	    }

	
}

